package com.cjy.runnable.demo6;

/**
 * @author Cheng JiYe
 * @description: 实现Runnable接口
 * @date 2021/4/25 1:01
 */
public class MyThread implements Runnable {

  /** 覆写run()方法 */
  @Override
  public void run() {
    while (true) {
      System.out.println(Thread.currentThread().getName() + "在运行。");
    }
  }
}
